package Txtfiction;

import java.io.Serializable;

public class FictionList implements Serializable  {
    private int type;
    private int number;
    private String fname;
    private String author;
    private String introduce;
    private String location;

    public FictionList() {

    }

    public FictionList(int type, int number, String fname, String author, String introduce, String location) {
        this.type = type;
        this.number = number;
        this.fname = fname;
        this.author = author;
        this.introduce = introduce;
        this.location = location;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return  number + "\t"+fname+ "\t" + author+ "\t" + introduce ;
    }
}
